package com.example.administrator.application

import android.annotation.SuppressLint
import android.os.Bundle
import android.support.v7.app.AppCompatActivity

@SuppressLint("Registered")
open class BaseActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ActivityManager.get()?.push(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        ActivityManager.get()?.pop(this)
    }

}